﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AdminUser.ascx.cs" Inherits="controls_admin_AdminUser" %>
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 id="txtTitle" runat="server">
            Danh Sách Quản Trị Viên</h5>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div class="first-action">
        <asp:DropDownList ID="ddlGroup" runat="server" CssClass="select" AutoPostBack="true"
            OnSelectedIndexChanged="ddlGroup_SelectedIndexChanged" />
    </div>
    <!-- end box / title -->
    <div class="table">
        <table>
            <thead>
                <tr>
                    <th>
                        STT
                    </th>
                    <th>
                        Tên đăng nhập
                    </th>
                    <th>
                        Tên đầy đủ
                    </th>
                    <th>
                        Ngày tạo
                    </th>
                    <th>
                        Sửa
                    </th>
                    <th class="last">
                        Xóa
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptData" runat="server" OnItemCommand="rptData_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Container.ItemIndex+1%>
                            </td>
                            <td align="center">
                                <%# Eval("USER_NAME") %>
                            </td>
                            <td align="center">
                                <%# Eval("FULL_NAME")%>
                            </td>
                            <td align="center">
                                <%#LibraryO2S.O2S_DateTime.dd_MM_yyyy(Convert.ToDateTime(Eval("CREATED_DATE")))%>
                            </td>
                            <td align="center">
                                <a href='<%#"default.aspx?module=adminuseredit&u_id="+Eval("ADMIN_ID")%>' title="Chỉnh Sửa">
                                    <img src="../Resources/icons/16x16/edit.png" class="icon-32-edit" />
                                </a>
                            </td>
                            <td class="last" align="center">
                                <asp:Button runat="server" ID="btnDel" CssClass="icon-32-delete" CommandName="del"
                                    CommandArgument='<%# Eval("ADMIN_ID")%>' BackColor="Transparent" BorderStyle="None"
                                    OnClientClick="return confirm('Bạn có chắc chắn muốn xóa không ?');" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="action">
            <div class="button">
                <asp:Button ID="btnNew" runat="server" Text="Thêm Mới" OnClick="btnNew_Click" />
            </div>
        </div>
    </div>
</div>
<!-- end table -->
